<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */

if ($q[0] == 'user') {
    switch ($q[1]) {
        case 'register':
            Page::setTitle(Lang::getFront('com_user', 'register_title'));
            include ('./components/com_user/action/register.php');
            break;

        case 'login':
            Page::setTitle(Lang::getFront('com_user', 'login_title'));
            include ('./components/com_user/action/login.php');
            break;
            
        case 'messages':
            Page::setTitle(Lang::getFront('com_user', 'messages_title'));
            include ('./components/com_user/action/messages.php');
            break;

        case 'logout':
            Page::setTitle(Lang::getFront('com_user', 'logout_title'));
            include ('./components/com_user/action/logout.php');
            break;

        case 'edit':
            Page::setTitle(Lang::getFront('com_user', 'edit_title'));
            include ('./components/com_user/action/edit.php');
            break;

        case 'single':
            Page::setTitle(Lang::getFront('com_user', 'single_title'));
            include ('./components/com_user/view/single.php');
            break;

        case 'group':
            Page::setTitle(Lang::getFront('com_user', 'group_title'));
            include ('./components/com_user/view/group.php');
            break;

        default:
            Page::setTitle(Lang::getFrontGlobal('404_title'));
            require ('./templates/404.php');
            break;
    }
}
?>